After uploading your PHP application files to a folder on your server, you should
run the setup script before using the application. However, if the database that
you defined in the project already exists on the server with all its tables and fields already
defined, you will not need the setup script, and you can skip to the next topic.
Running the setup script
To run the setup script from your web browser, use this url:
http://www.yourserver.com/path_to_appgini_generated_app/setup/setup.php
Replace 'www.yourserver.com' with your server name or IP, and 'path_to_appgini_generated_app' with
the path to your application's folder. This script will look for a database
with the name you specified in your AppGini project. If it can't find one, it will
attempt to create it.
Next, the script will look for tables in the database with the names you specified
in your project. It will attempt to create any table that doesn't already exist.
You will see messages indicating whether the setup was succesful or not, and a link
to your PHP application's homepage. The home page is the file 'index.html' created
in the application folder.
Avoid these errors during setup
Notice that the setup script will not create a table if it already exists in your database
and will assume that the table fields are the same as what you defined in your
project. If the existing table doesn't match the table you defined in AppGini, the
PHP application will not function properly. To avoid this, you should either change the table name
in your AppGini project and regenerate the application, or delete the existing
table in the database.
If you see error messages stating that the setup script can't create the database or any of
the tables, make sure the username and password you provided to AppGini have enough permissions
to allow you to define the database and its tables.
© Copyright 2002, BigProf Software. All rights reserved.